package com.API;

import java.time.LocalDateTime;

public class DateTime04 {
    public static void main(String[] args) {
        LocalDateTime localDateTime = LocalDateTime.of(2020, 10, 21, 4, 34, 45);
        int year = localDateTime.getYear();
        System.out.println(year);
        int monthValue = localDateTime.getMonthValue();
        System.out.println(monthValue);
    }
}
